package com.hzhk.happyrent.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.hzhk.happyrent.App;
import com.hzhk.happyrent.R;
import com.hzhk.happyrent.utils.glide.ShowImageUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class BankCardItemActivity extends Activity {

    @BindView(R.id.activity_titlebar_left)
    ImageView activityTitlebarLeft;
    @BindView(R.id.activity_titlebar_center)
    TextView activityTitlebarCenter;
    @BindView(R.id.activity_titlebar_right)
    ImageView activityTitlebarRight;
    @BindView(R.id.card_bank_num)
    TextView cardBankNum;
    @BindView(R.id.card_yuyue_image)
    ImageView cardYuyueImage;
    @BindView(R.id.card_yuyue_name)
    TextView cardYuyueName;
    @BindView(R.id.li_1)
    LinearLayout li1;
    private Logger log = LoggerFactory.getLogger(this.getClass().getName());

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        log.debug("jumo into onCreate");
        setContentView(R.layout.activity_bank_card_item);
        ButterKnife.bind(this);
        initView();
        initData();
    }

    private void initData() {
    }

    private void initView() {
        activityTitlebarLeft.setImageResource(R.drawable.back);
        activityTitlebarCenter.setText("提交资料");
        activityTitlebarRight.setVisibility(View.GONE);
        Intent intent = getIntent();
        String imageUil = intent.getStringExtra("imageUil");
        String bankName = intent.getStringExtra("bankName");
        ShowImageUtils.showImageView(App.getContext(), cardYuyueImage, imageUil);
        cardYuyueName.setText(bankName);

    }

    @OnClick(R.id.activity_titlebar_left)
    public void onViewClicked() {
        finish();
    }
}
